import "normalize.css"

import { createApp } from 'vue'
import App from './App.vue'


import store from './store'
//引入配置好的i18n
import i18n from "./i18n"

const app = createApp(App)

import router from './router'

//引入mock配置
import "./mock"

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

//挂在路由
app.use(router)
//挂载Vuex
app.use(store)
//挂载i18n
app.use(i18n)

app.mount('#app')
